package com.tj.collection;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Created with IntelliJ IDEA.
 * User: pavan
 * Date: 2020/2/11
 * Time: 上午10:45
 */
@SpringBootApplication
@ComponentScan(basePackages = {
        "com.fqgj.common",
        "com.tj.collection"
})
@ImportResource({
        "classpath:app-redis.xml",
        "classpath:amazon-s3-service.xml",
//        "classpath:oss-service.xml",
        "classpath:elasticjob-config.xml",
        "classpath:config.xml",
        "classpath:dubbo-provider.xml",
})
@EnableTransactionManagement
@EnableScheduling
@EnableAsync
@MapperScan(basePackages = {"com.tj.collection.db.admin.dao.mp"})
public class PostLendingApplication {
    public static void main(String[] args) {
        SpringApplication.run(PostLendingApplication.class, args);
    }
}
